package com.hlhj.funlike_business.presenter;

import android.content.Context;

import com.example.mymvp.mvp.BasePresenter;
import com.hlhj.funlike_business.bean.ShopInfoBean;
import com.hlhj.funlike_business.moudle.MineFgmMoudle;
import com.hlhj.funlike_business.views.MineFgmView;

public class MineFgmPresenter extends BasePresenter<MineFgmMoudle,MineFgmView> implements MineFgmMoudle.getShopStatus {
    @Override
    public void createModule() {
        module = new MineFgmMoudle();
        module.setListener(this);
    }

    public void LoadShopStatus(Context context,int shop_status){
        module.LoadShopStatus(context,shop_status);
    }

    public void LoadShopInfo(Context context){
        module.LoadShopInfo(context);
    }


    @Override
    public void loadShopStatus(String msg) {
        getView().showShopStatus(msg);
    }

    @Override
    public void loadShopInfo(ShopInfoBean.DataBean dataBean) {
        getView().showShopInfo(dataBean);
    }
}
